﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BuildingDrawer
{
    class E_Solid
    {
        public int id;
        public E_Area a1;
        public E_Area a2;
        public E_Area a3;
        public E_Area a4;
        public E_Area a5;
        public E_Area a6;
        public E_Solid()
        {
            this.id = 0;
            a1 = new E_Area();
            a2 = new E_Area();
            a3 = new E_Area();
            a4 = new E_Area();
            a5 = new E_Area();
            a6 = new E_Area();

        }
        public E_Solid(int id, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4, float x5, float y5, float z5, float x6, float y6, float z6, float x7, float y7, float z7, float x8, float y8, float z8)
        {
            this.id = id;
            a1 = new E_Area(id, x1, y1, z1, x2, y2, z2, x4, y4, z4, x3, y3, z3);
            a2 = new E_Area(id, x5, y5, z5, x6, y6, z6, x8, y8, z8, x7, y7, z7);
            a3 = new E_Area(id, x1, y1, z1, x2, y2, z2, x6, y6, z6, x5, y5, z5);
            a4 = new E_Area(id, x1, y1, z1, x3, y3, z3, x7, y7, z7, x5, y5, z5);
            a5 = new E_Area(id, x2, y2, z2, x4, y4, z4, x8, y8, z8, x6, y6, z6);
            a6 = new E_Area(id, x3, y3, z3, x4, y4, z4, x8, y8, z8, x7, y7, z7);
        }
    }
}
